package com.healthbox.resultsservice.mapper;

import com.healthbox.resultsservice.entity.AL_TR;
import com.healthbox.resultsservice.entity.TestResult;
import com.healthbox.resultsservice.entity.TestResultForTOadmin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.Date;
import java.util.List;

@Mapper
public interface TOadminResultsMapper {

    int create_TR(TestResult testResult);

    int create_AL_TR(AL_TR al_tr);

    int update(@Param("AIId") Long aIId, @Param("TRId") Long tRId, @Param("result") String result);

    int delete(@Param("TRId") Long tRId);

    List<TestResultForTOadmin> retrieve(@Param("hospital_id") Long hospital_id);

    Long checkHospital(@Param("userPhone") String userPhone);

    String getUserPhone(@Param("ai_id") Long ai_id);

}
